﻿<Window x:Class="WPF_QCCM.QCconfig"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="QC Configuration Manager" Height="542" Width="1004">
    <Grid>
        <TabControl x:Name="QCConfigTabs" HorizontalAlignment="Center" Height="492" VerticalAlignment="Center" Width="974">
            <TabItem Header="Materials/Attributes">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="487"/>
                        <ColumnDefinition Width="487"/>
                    </Grid.ColumnDefinitions>
                    <GroupBox Header="Materials" HorizontalAlignment="Left" Height="405" Margin="19,30,0,0" VerticalAlignment="Top" Width="445">
                    </GroupBox>

                    <Label x:Name="lblMname" Content="Name:" HorizontalAlignment="Left" HorizontalContentAlignment="Right" Margin="69,59,0,0" VerticalAlignment="Top"/>
                    <TextBox x:Name="txtMname" HorizontalAlignment="Left" Height="22" Margin="118,61,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="175"/>
                    <Label x:Name="lblMdescription" Content="Description:" HorizontalAlignment="Left" HorizontalContentAlignment="Right" Margin="40,94,0,0" VerticalAlignment="Top"/>
                    <TextBox x:Name="txtMdescription" HorizontalAlignment="Left" Height="45" Margin="118,94,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="175"/>
                    <DataGrid x:Name="dgdMaterials" HorizontalAlignment="Left" Height="156" Margin="39,256,0,0" VerticalAlignment="Top" Width="406"/>
                    <CheckBox Content="Disable Material" HorizontalAlignment="Left" Margin="154,152,0,0" VerticalAlignment="Top"/>
                    <Button x:Name="btnAddMaterial" Content="Add New Material" HorizontalAlignment="Left" Margin="307,61,0,0" VerticalAlignment="Top" Width="118"/>
                    <Button x:Name="btnSaveMaterial" Content="Save" HorizontalAlignment="Left" Margin="360,100,0,0" VerticalAlignment="Top" Width="65"/>
                    <Button x:Name="btnDeleteMaterial" Content="Delete" HorizontalAlignment="Left" Margin="360,135,0,0" VerticalAlignment="Top" Width="65"/>
                    <Button x:Name="btnMCancel" Content="Cancel" HorizontalAlignment="Left" Margin="360,169,0,0" VerticalAlignment="Top" Width="65"/>
                    <TextBox x:Name="txtMsearch" HorizontalAlignment="Left" Height="23" Margin="185,225,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="162"/>
                    <Label x:Name="lblMsearch" HorizontalContentAlignment="Right" Content="Search Materials:" HorizontalAlignment="Left" Margin="69,225,0,0" VerticalAlignment="Top" Width="111"/>
                    <Button x:Name="btnMsearch" Content="Search" HorizontalAlignment="Left" Margin="355,226,0,0" VerticalAlignment="Top" Width="75"/>

                    <GroupBox Header="Attributes" HorizontalAlignment="Left" Height="405" Margin="17,30,0,0" VerticalAlignment="Top" Width="446" Grid.Column="1"/>
                    <Label x:Name="lblAname" Content="Name:" HorizontalAlignment="Left" HorizontalContentAlignment="Right" Margin="67,59,0,0" VerticalAlignment="Top" Grid.Column="1"/>
                    <TextBox x:Name="txtAname" HorizontalAlignment="Left" Height="22" Margin="116,61,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="175" Grid.Column="1"/>
                    <Label x:Name="lblAdescription" Content="Description:" HorizontalAlignment="Left" HorizontalContentAlignment="Right" Margin="38,93,0,0" VerticalAlignment="Top" Grid.Column="1"/>
                    <TextBox x:Name="txtAdescription" HorizontalAlignment="Left" Height="45" Margin="116,93,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="175" Grid.Column="1"/>
                    <DataGrid x:Name="dgdAttributes" HorizontalAlignment="Left" Height="156" Margin="37,256,0,0" VerticalAlignment="Top" Width="406" Grid.Column="1"/>
                    <CheckBox Content="Disable Attribute" HorizontalAlignment="Left" Margin="151,184,0,0" VerticalAlignment="Top" Grid.Column="1"/>
                    <Button x:Name="btnAsearch" Content="Search" HorizontalAlignment="Left" Margin="353,226,0,0" VerticalAlignment="Top" Width="75" Grid.Column="1"/>
                    <Label x:Name="lblDataType" Content="Data Type:" HorizontalAlignment="Left" HorizontalContentAlignment="Right" Margin="38,149,0,0" VerticalAlignment="Top" Grid.Column="1" Width="73"/>
                    <TextBox x:Name="txtDataType" HorizontalAlignment="Left" Height="22" Margin="116,149,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="175" Grid.Column="1"/>
                    <Button x:Name="btnSaveAttribute" Content="Save" HorizontalAlignment="Left" Margin="358,100,0,0" VerticalAlignment="Top" Width="65" Grid.Column="1"/>
                    <Button x:Name="btnDeleteAttribute" Content="Delete" HorizontalAlignment="Left" Margin="358,135,0,0" VerticalAlignment="Top" Width="65" Grid.Column="1"/>
                    <Button x:Name="btnAcancel" Content="Cancel" HorizontalAlignment="Left" Margin="358,169,0,0" VerticalAlignment="Top" Width="65" Grid.Column="1"/>
                    <Button Content="Add New Attribute" HorizontalAlignment="Left" Margin="305,61,0,0" VerticalAlignment="Top" Width="118" Grid.Column="1" />
                    <TextBox x:Name="txtAsearch" HorizontalAlignment="Left" Height="23" Margin="183,225,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="162" Grid.Column="1"/>
                    <Label x:Name="lblAsearch" HorizontalContentAlignment="Right" Content="Search Attributes:" HorizontalAlignment="Left" Margin="67,225,0,0" VerticalAlignment="Top" Grid.Column="1" Width="111"/>
                </Grid>
            </TabItem>
            <TabItem Header="Material QC Attributes">
                <Grid>
                    <ListBox x:Name="lstMaterials_2" HorizontalAlignment="Left" Height="131" VerticalAlignment="Top" Width="194" Margin="53,73,0,0"/>
                    <TextBox x:Name="txtMsearch_2" HorizontalAlignment="Left" Height="24" Margin="55,45,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="138"/>
                    <Button x:Name="btnMsearch_2" Content="Search" HorizontalAlignment="Left" Margin="198,46,0,0" VerticalAlignment="Top" Width="49"/>
                    <Label Content="Search for a material:" HorizontalAlignment="Left" Margin="55,22,0,0" VerticalAlignment="Top" FontStyle="Italic" Width="128"/>

                    <ListBox x:Name="lstAttributes_2" HorizontalAlignment="Left" Height="131" VerticalAlignment="Top" Width="194" Margin="293,73,0,0"/>
                    <TextBox x:Name="txtAsearch_2" HorizontalAlignment="Left" Height="24" Margin="295,45,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="138"/>
                    <Button x:Name="btnAsearch_2" Content="Search" HorizontalAlignment="Left" Margin="438,46,0,0" VerticalAlignment="Top" Width="49"/>
                    <Label Content="Search for an attribute:" HorizontalAlignment="Left" Margin="295,22,0,0" VerticalAlignment="Top" FontStyle="Italic" Width="138"/>

                    <ComboBox x:Name="cboType" HorizontalAlignment="Left" Margin="542,47,0,0" VerticalAlignment="Top" Width="126"/>
                    <Label Content="Select Measurement Type:" HorizontalAlignment="Left" Margin="531,21,0,0" VerticalAlignment="Top" FontStyle="Italic"/>
                    <TextBox x:Name="TargetOrHigh" HorizontalAlignment="Left" Height="23" Margin="545,105,0,332" Visibility="Visible" Width="120"/>
                    <Label x:Name="Target" Content="Target:" Margin="543,82,372,350" Visibility="Visible" />

                    <TextBox x:Name="ToleranceOrLow" HorizontalAlignment="Left" Height="23" Margin="545,156,0,280" Visibility="Visible" Width="120"/>
                    <Label x:Name="Tolerance" Content="Tolerance:" Margin="543,133,357,304" Visibility="Visible" />
                    <CheckBox Content="Disable Material QC Attribute" HorizontalAlignment="Left" Margin="721,49,0,0" VerticalAlignment="Top" />
                    <Label x:Name="High" Content="High Limit:" Margin="631,82,260,350" />
                    <Label x:Name="Low" Content="Low Limit:" Margin="631,133,269,304" />

                    <Button x:Name="btnAddMQCA" Content="Add New" HorizontalAlignment="Left" Margin="760,86,0,0" VerticalAlignment="Top" Width="86" Visibility="Visible" />
                    <Button x:Name="btnSaveMQCA" Content="Save" HorizontalAlignment="Left" Margin="765,130,0,0" VerticalAlignment="Top" Width="76" Visibility="Visible" />
                    <Button x:Name="btnDeleteMQCA" Content="Delete" HorizontalAlignment="Left" Margin="765,162,0,0" VerticalAlignment="Top" Width="76" Visibility="Visible" />
                    <Button x:Name="btnCancelMQCA" Content="Cancel" HorizontalAlignment="Left" Margin="765,194,0,0" VerticalAlignment="Top" Width="76" Visibility="Visible" />
                    <DataGrid HorizontalAlignment="Left" Margin="55,242,0,0" VerticalAlignment="Top" Height="198" Width="610"/>
                    <Label Content="Enable/Disable:" HorizontalAlignment="Left" Margin="751,22,0,0" VerticalAlignment="Top" FontStyle="Italic"/>


                </Grid>
            </TabItem>
            <TabItem Header="Quality Control Schedules">
                <Grid>
                    <ListBox x:Name="lstMaterials_3" HorizontalAlignment="Left" Height="131" VerticalAlignment="Top" Width="194" Margin="53,73,0,0"/>
                    <TextBox x:Name="txtMsearch_3" HorizontalAlignment="Left" Height="24" Margin="55,45,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="138"/>
                    <Button x:Name="btnMsearch_3" Content="Search" HorizontalAlignment="Left" Margin="198,46,0,0" VerticalAlignment="Top" Width="49"/>
                    <Label Content="Search for a material:" HorizontalAlignment="Left" Margin="55,22,0,0" VerticalAlignment="Top" FontStyle="Italic" Width="128"/>

                    <ListBox x:Name="lstAttributes_3" HorizontalAlignment="Left" Height="131" VerticalAlignment="Top" Width="194" Margin="293,73,0,0"/>
                    <TextBox x:Name="txtAsearch_3" HorizontalAlignment="Left" Height="24" Margin="295,45,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="138"/>
                    <Button x:Name="btnAsearch_3" Content="Search" HorizontalAlignment="Left" Margin="438,46,0,0" VerticalAlignment="Top" Width="49"/>
                    <Label Content="Search for an attribute:" HorizontalAlignment="Left" Margin="295,22,0,0" VerticalAlignment="Top" FontStyle="Italic" Width="138"/>


                    <ComboBox HorizontalAlignment="Left" Margin="510,76,0,0" VerticalAlignment="Top" Width="125"/>
                    <Label Content="Select a day:"  HorizontalContentAlignment="Center" HorizontalAlignment="Left" Margin="533,52,0,0" VerticalAlignment="Top" Width="79" FontStyle="Italic"/>
                    <ComboBox HorizontalAlignment="Left" Margin="510,134,0,0" VerticalAlignment="Top" Width="125"/>
                    <Label Content="Select a time:" HorizontalContentAlignment="Center"  HorizontalAlignment="Left" Margin="529,110,0,0" VerticalAlignment="Top" Width="87" FontStyle="Italic"/>
                    <CheckBox Content="Disabled"  HorizontalContentAlignment="Center" HorizontalAlignment="Left" Margin="542,192,0,0" VerticalAlignment="Top" Width="62"/>
                    <Label Content="Enable/Disable:" HorizontalContentAlignment="Center" HorizontalAlignment="Left" Margin="525,169,0,0" VerticalAlignment="Top" Width="95" FontStyle="Italic"/>
                    <DataGrid HorizontalAlignment="Left" Height="178" Margin="59,250,0,0" VerticalAlignment="Top" Width="847"/>

                    <Button x:Name="AddQCsched" Content="Add New" HorizontalAlignment="Left" Margin="694,76,0,0" VerticalAlignment="Top" Width="86" Visibility="Visible" />
                    <Button x:Name="SaveQCsched" Content="Save" HorizontalAlignment="Left" Margin="817,76,0,0" VerticalAlignment="Top" Width="75" Visibility="Visible" />
                    <Button x:Name="DeleteQCsched" Content="Delete" HorizontalAlignment="Left" Margin="817,108,0,0" VerticalAlignment="Top" Width="75" Visibility="Visible" />
                    <Button x:Name="CancelQCsched" Content="Cancel" HorizontalAlignment="Left" Margin="817,143,0,0" VerticalAlignment="Top" Width="75" Visibility="Visible" />

                </Grid>
            </TabItem>
        </TabControl>
    </Grid>
</Window>
